use<tools/util.scad>
$fn=100;

hook();
//translate([0,-40,0])cros();
//translate([100,0,0])t_head();

module hook(){
    translate([0,0,165])rotate([90,0,0])rotate_extrude(angle=270)translate([25,0])circle(6);
    translate([25,0,165])sphere(6);
    translate([0,0,10])cylinder(h=130,d=12);
    translate([0,0,140])sphere(6);

        translate([0,0,7])difference(){
            minkowski(){
            cube([178,12,12],center=true);
            sphere(1);
            }
            translate([70,0,0])cube([40.1,10.4,10.4],center=true);
            translate([-70,0,0])cube([40.1,10.4,10.4],center=true);
        }
        translate([3,0,14])d__tri_stiff(x=15,y=25,z=12);
        rotate([0,0,180])translate([3,0,14])d__tri_stiff(x=15,y=25,z=12);
}


module cros(){
    difference(){
        union(){
            translate([60,0,2])rotate([0,15,0])
            difference(){
                cube([10,10,110]);
                translate([1.8,1.8,90])cube([6.4,6.4,21]);
            }
            cube([65,10,10]); 
            translate([65,0,10])rotate([90,0,180])d_ang_stiff(s=10,height=10,angle=105);
        }
        translate([50,0,-10])cube([21,11,10]);
        translate([70.5,0,0])rotate([90,0,180])d_round_ang_mask(s=10,height=10,angle=105);
    }
}


module t_head(){
    translate([3,0,5])union(){
        rotate([0,90,0])cylinder(h=30,d=10);
        sphere(5);
        translate([30,0,0])sphere(5);
    }
    translate([18,0,20])cube([10,10,30],center=true);
    translate([18,0,45])cube([6,6,20],center=true);
    
    
}
